ICamTable.SetTable method

Sets a cam table by setting the connections to a relevant table.

Namespace: IntervalZero.KINGSTAR.Base.Class

Assembly: IntervalZero.KINGSTAR.Base.Class (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
Task SetTable(
       bool masterAbsolute,
       bool slaveAbsolute,
       bool periodic,
       McCamInterpolationType interpolationType,
       CamPoint[] points
)
Function SetTable(
       masterAbsolute As Boolean,
       slaveAbsolute As Boolean,
       periodic As Boolean,
       interpolationType As McCamInterpolationType,
       points As CamPoint()
) As Task

Parameters

masterAbsolute

Type: bool

Chooses the absolute or relative coordinates for the master axis. 1 = absolute, 0 = relative coordinates. By default, it is 0.

Absolute coordinates: Every position is counted from zero.

Relative coordinates: The position is counted from the previous position in the table. For example, if the previous absolute position is five, and you move the master two units, the next absolute position is seven, but the relative position is two.

 

slaveAbsolute

Type: bool

Chooses the absolute or relative coordinates for the slave axis. 1 = absolute, 0 = relative coordinates. By default, it is 0.

Absolute coordinates: Every position is counted from zero.

Relative coordinates: The position is counted from the previous position in the table.

 

periodic

Type: bool

Determines whether to repeat the cam profile. 1 = periodic, 0 = non periodic (single-shot). By default, it is 0.

Periodic: Repeats the execution of the cam profile on a continuous basis, even if the cam profile doesn't match the modulo. This means that for a modulo axis with modulo is 360 degrees, and the cam profiles is specified for 90 degrees, it will be executed 4 times in a modulo. In reverse mode the profile is run the inverse way.

Non-Periodic: the cam profile is run only once. If the master moves out of the range, the slave stops following and stays at the last position in the cam table, and the slave's state is returned to StandStill. In reverse mode, the cam profile is not executed after having reached the "EndOfProfile" position. The 90 degrees example above will be run only once.

 

interpolationType

Type: McCamInterpolationType

Selects the motion type of cam.

 

points

Type: CamPoint[]

The additional parameter for the table points, depends on the interpolation type.

Linear interpolation: null.

Poly5 interpolation: it has four point types. "!=" means "not equal to."

Return value

Type: Task

Represents an asynchronous operation.

Remarks

See also

ICamTable Interface

IntervalZero.KINGSTAR.Base.Class Namespace